package website.lucaswork.survey.core.services;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.security.core.userdetails.UserDetailsService;

import website.lucaswork.survey.core.dtos.UserDTO;
import website.lucaswork.survey.core.entities.User;
import website.lucaswork.survey.core.enums.RoleEnum;

public interface UserService extends UserDetailsService {
	public User updateUserRole(User user, RoleEnum[] roles);
	public User createUser(String username, String email, String password);
	public User findUserByEmail(String email);
	public User findUserByUsername(String username);
	public Page<UserDTO> getPageUsers(Pageable pageable);
}
